﻿
    <sdk:ChildWindow	
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"	
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    mc:Ignorable="d" x:Class="Lottery.Client.SL.Controls.SetRewards"
	Title="修改奖金与返点" Width="510" Height="280">

    <sdk:ChildWindow.Resources>
        <Style x:Key="RepeatButtonStyle_AddScale" TargetType="RepeatButton">
            <Setter Property="Background" Value="#FF1F3B53"/>
            <Setter Property="Foreground" Value="#FF000000"/>
            <Setter Property="Padding" Value="3"/>
            <Setter Property="BorderThickness" Value="1"/>
            <Setter Property="BorderBrush">
                <Setter.Value>
                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                        <GradientStop Color="#FFA3AEB9" Offset="0"/>
                        <GradientStop Color="#FF8399A9" Offset="0.375"/>
                        <GradientStop Color="#FF718597" Offset="0.375"/>
                        <GradientStop Color="#FF617584" Offset="1"/>
                    </LinearGradientBrush>
                </Setter.Value>
            </Setter>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="RepeatButton">
                        <Grid Cursor="Hand">
                            <VisualStateManager.VisualStateGroups>
                                <VisualStateGroup x:Name="CommonStates">
                                    <VisualState x:Name="Normal"/>
                                    <VisualState x:Name="MouseOver">
                                        <Storyboard>
                                            <ColorAnimation Duration="0" To="#FF0D7FA7" Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)" Storyboard.TargetName="Background" d:IsOptimized="True"/>
                                            <ColorAnimation Duration="0" To="#FF59B4D4" Storyboard.TargetProperty="(Border.BorderBrush).(SolidColorBrush.Color)" Storyboard.TargetName="Background" d:IsOptimized="True"/>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="mask">
                                                <DiscreteObjectKeyFrame KeyTime="0">
                                                    <DiscreteObjectKeyFrame.Value>
                                                        <Visibility>Collapsed</Visibility>
                                                    </DiscreteObjectKeyFrame.Value>
                                                </DiscreteObjectKeyFrame>
                                            </ObjectAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </VisualState>
                                    <VisualState x:Name="Pressed">
                                        <Storyboard>
                                            <ColorAnimation Duration="0" To="#FF6DBDD1" Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)" Storyboard.TargetName="Background"/>
                                        </Storyboard>
                                    </VisualState>
                                    <VisualState x:Name="Disabled"/>
                                </VisualStateGroup>
                                <VisualStateGroup x:Name="FocusStates">
                                    <VisualState x:Name="Focused"/>
                                    <VisualState x:Name="Unfocused"/>
                                </VisualStateGroup>
                            </VisualStateManager.VisualStateGroups>
                            <Border x:Name="Background" BorderThickness="{TemplateBinding BorderThickness}" Background="Gray" BorderBrush="#FF404040"/>
                            <ContentPresenter x:Name="contentPresenter" ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
                            <Border x:Name="mask" Background="#33000000"/>
                        </Grid>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
    </sdk:ChildWindow.Resources>
    <sdk:ChildWindow.Style>
        <StaticResource ResourceKey="ChildWindowStyle_ConfirmWindow"/>
    </sdk:ChildWindow.Style>
    <Grid x:Name="LayoutRoot">
        <Grid Name="gridMain" Margin="0,0,0,20">
            <StackPanel Orientation="Horizontal" Margin="6,6,4,176">
                <Canvas x:Name="infoBackPct" Cursor="Hand" HorizontalAlignment="Center" Margin="5,8,5,0" Width="90">
                    <Rectangle Height="30" StrokeThickness="0" Width="86" RadiusX="2" RadiusY="2">
                        <Rectangle.Fill>
                            <LinearGradientBrush EndPoint="0.5,1" MappingMode="RelativeToBoundingBox" StartPoint="0.5,0">
                                <GradientStop Color="#FFCECECE"/>
                                <GradientStop Color="#FFBEBEBE" Offset="1"/>
                            </LinearGradientBrush>
                        </Rectangle.Fill>
                    </Rectangle>
                    <Rectangle Height="24" Canvas.Left="3" StrokeThickness="0" Canvas.Top="3" Width="80" Opacity="0.825" RadiusX="2" RadiusY="2">
                        <Rectangle.Effect>
                            <BlurEffect/>
                        </Rectangle.Effect>
                        <Rectangle.Fill>
                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                <GradientStop Color="White" Offset="0.452"/>
                                <GradientStop Color="#FF9B9B9B" Offset="0.586"/>
                            </LinearGradientBrush>
                        </Rectangle.Fill>
                    </Rectangle>
                    <TextBlock x:Name="lbBackPct" Height="22" TextAlignment="Center" Canvas.Top="2" TextWrapping="Wrap" Width="86" FontSize="17" />
                </Canvas>
                <RepeatButton x:Name="btAddBackPct" HorizontalAlignment="Center" Margin="0,14,4,5" Width="22" Style="{StaticResource RepeatButtonStyle_AddScale}" FontSize="16" Background="{x:Null}" BorderBrush="{x:Null}">
                    <Canvas x:Name="btAddBackPct1" Height="24" Width="24">
                        <Rectangle Height="20" RadiusY="2" RadiusX="2" StrokeThickness="0" Width="20" Fill="#FFE5E5E5"/>
                        <Rectangle Fill="#FF898989" Height="3" Canvas.Left="3" StrokeThickness="0" Canvas.Top="9" Width="14"/>
                        <Rectangle Fill="#FF898989" Height="3" Canvas.Left="3" StrokeThickness="0" Canvas.Top="8.5" Width="14" RenderTransformOrigin="0.5,0.5" UseLayoutRounding="False" d:LayoutRounding="Auto">
                            <Rectangle.RenderTransform>
                                <CompositeTransform Rotation="90"/>
                            </Rectangle.RenderTransform>
                        </Rectangle>
                    </Canvas>
                </RepeatButton>
                <Slider x:Name="sliderBonus" Width="200" HorizontalAlignment="Center" Margin="5,17,5,10" d:LayoutOverrides="Height"/>
                <RepeatButton x:Name="btAddBonus" HorizontalAlignment="Center" Margin="0,14,4,5" Width="22" Style="{StaticResource RepeatButtonStyle_AddScale}">
                    <Canvas x:Name="Subtractbutton" Height="24" Width="24">
                        <Rectangle Height="20" RadiusY="2" RadiusX="2"  IsHitTestVisible="True" StrokeThickness="0" Width="20" Fill="#FFE5E5E5"/>
                        <Rectangle Fill="#FF898989" Height="3"  Canvas.Left="3" IsHitTestVisible="True" StrokeThickness="0" Canvas.Top="9" Width="14"  />
                        <Rectangle Fill="#FF898989" Height="3" Canvas.Left="3"  IsHitTestVisible="True" StrokeThickness="0" Canvas.Top="8.5" Width="14" RenderTransformOrigin="0.5,0.5" UseLayoutRounding="False" d:LayoutRounding="Auto">
                            <Rectangle.RenderTransform>
                                <CompositeTransform Rotation="90"/>
                            </Rectangle.RenderTransform>
                        </Rectangle>
                    </Canvas>
                </RepeatButton>
                <Canvas x:Name="infoBonus" Cursor="Hand" HorizontalAlignment="Center" Margin="4,8,5,0" Width="110">
                    <Rectangle Height="30" StrokeThickness="0" Width="110" RadiusX="2" RadiusY="2" Fill="#FFC4C4C4"/>
                    <Rectangle Height="24" Canvas.Left="3" StrokeThickness="0" Canvas.Top="3" Width="104" Opacity="0.825" RadiusX="2" RadiusY="2">
                        <Rectangle.Fill>
                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                <GradientStop Color="#FFA0A0A0" Offset="0.545"/>
                                <GradientStop Color="#FFF4F4F4" Offset="0.455"/>
                            </LinearGradientBrush>
                        </Rectangle.Fill>
                        <Rectangle.Effect>
                            <BlurEffect/>
                        </Rectangle.Effect>
                    </Rectangle>
                    <TextBlock x:Name="lbBonus" TextAlignment="Center" Height="22" Canvas.Top="2" TextWrapping="Wrap" Width="110" FontSize="17" Foreground="Red" />
                </Canvas>
            </StackPanel>
            <StackPanel Orientation="Horizontal" Margin="11,56,1,30">
                <Canvas Width="470" Margin="0">
                    <Rectangle Height="150" RadiusY="4" RadiusX="4" Stroke="#FF606060" Width="470" Fill="#FF333333"/>
                    <Rectangle Height="130" Canvas.Left="10" Stroke="#FF606060" Canvas.Top="10" Width="450" Fill="#7F647271"/>
                    <TextBlock Height="14" Canvas.Left="33" TextWrapping="Wrap" Text="玩法" Canvas.Top="17" Width="29" Foreground="#FFBFEB05" FontSize="12"/>
                    <TextBlock Height="14" Canvas.Left="100" TextWrapping="Wrap" Text="奖金(元)" Canvas.Top="17" Width="49" Foreground="#FFBFEB05" FontSize="12"/>
                    <TextBlock Height="14" Canvas.Left="253" TextWrapping="Wrap" Text="奖金(元)" Canvas.Top="17" Width="49" Foreground="#FFBFEB05" FontSize="12"/>
                    <TextBlock Height="14" Canvas.Left="184" TextWrapping="Wrap" Text="玩法" Canvas.Top="17" Width="29" Foreground="#FFBFEB05" FontSize="12"/>
                    <Path Data="M150,81.17292 L150,270.18741" Height="130" Canvas.Left="90" Stretch="Fill" Stroke="#FF7A7A7A" UseLayoutRounding="False" Width="1" Canvas.Top="10"/>
                    <Path Data="M150,81.666656 L149.1675,270.18839" Height="129.165" Canvas.Left="160" Stretch="Fill" Stroke="#FF7A7A7A" UseLayoutRounding="False" Width="1.833" Canvas.Top="10.335"/>
                    <Path Data="M149.25,82.277107 L149.25,270.55615" Height="130" Canvas.Left="240" Stretch="Fill" Stroke="#FF7A7A7A" UseLayoutRounding="False" Width="1" Canvas.Top="10"/>
                    <Path Data="M150.5,82.889984 L150.5,269.20776" Height="130" Canvas.Left="310" Stretch="Fill" Stroke="#FF7A7A7A" UseLayoutRounding="False" Width="1" Canvas.Top="10"/>
                    <Path Data="M150,81.666656 L150,259.64917" Height="127.666" Canvas.Left="390" Stretch="Fill" Stroke="#FF7A7A7A" UseLayoutRounding="False" Width="1" Canvas.Top="11.167"/>
                    <Path Data="M6.6799417,42 L265.1828,42" Height="1" Canvas.Left="10.164" Stretch="Fill" Stroke="#FF7A7A7A" Canvas.Top="40" UseLayoutRounding="False" Width="449.836"/>
                    <Path Data="M11.014824,41.833656 L264.8139,41.833332" Height="2" Canvas.Left="10" Stretch="Fill" Stroke="#FF7A7A7A" Canvas.Top="73" UseLayoutRounding="False" Width="450"/>
                    <Path Data="M11.014461,42 L266.01282,42" Height="1" Canvas.Left="10" Stretch="Fill" Stroke="#FF7A7A7A" Canvas.Top="106" UseLayoutRounding="False" Width="450"/>
                    <TextBlock Height="16" Canvas.Left="22" TextWrapping="Wrap" Text="三星直选" Canvas.Top="48" Width="55" Foreground="White" FontSize="12"/>
                    <TextBlock x:Name="tbSXZF" Height="14" Canvas.Left="101" TextWrapping="Wrap" Canvas.Top="50" Width="52" Foreground="White" FontSize="12"/>
                    <TextBlock Height="16" Canvas.Left="176" TextWrapping="Wrap" Text="二星直选" Canvas.Top="48" Width="54" Foreground="White" FontSize="12"/>
                    <TextBlock x:Name="tbEXZX" Height="14" Canvas.Left="253" TextWrapping="Wrap" Canvas.Top="49" Width="52" Foreground="White" FontSize="12"/>
                    <TextBlock Height="16" Canvas.Left="22" TextWrapping="Wrap" Text="三星组选" Canvas.Top="81" Width="55" Foreground="White" FontSize="12"/>
                    <TextBlock x:Name="tbSXZUX" Height="14" Canvas.Left="101" TextWrapping="Wrap" Canvas.Top="83" Width="52" Foreground="White" FontSize="12"/>
                    <TextBlock Height="16" Canvas.Left="176" TextWrapping="Wrap" Text="二星组选" Canvas.Top="81" Width="54" Foreground="White" FontSize="12"/>
                    <TextBlock x:Name="tbEXZUX" Height="14" Canvas.Left="253" TextWrapping="Wrap" Canvas.Top="82" Width="52" Foreground="White" FontSize="12"/>
                    <TextBlock Height="16" Canvas.Left="22" TextWrapping="Wrap" Text="不定位胆" Canvas.Top="114" Width="55" Foreground="White" FontSize="12"/>
                    <TextBlock x:Name="tbBDWD" Height="14" Canvas.Left="101" TextWrapping="Wrap" Text="3.4" Canvas.Top="115" Width="52" Foreground="White" FontSize="12"/>
                    <TextBlock Height="16" Canvas.Left="329" TextWrapping="Wrap" Text="大小单双" Canvas.Top="48" Width="54" Foreground="White" FontSize="12"/>
                    <TextBlock x:Name="tbDXDS" Height="14" Canvas.Left="402" Text="3.6" TextWrapping="Wrap" Canvas.Top="48" Width="52" Foreground="White" FontSize="12"/>
                    <TextBlock Height="16" Canvas.Left="329" TextWrapping="Wrap" Text="定位胆" Canvas.Top="82" Width="52" Foreground="White" FontSize="12"/>
                    <TextBlock x:Name="tbDWDZX" Height="14" Canvas.Left="402" TextWrapping="Wrap" Canvas.Top="83" Width="52" Foreground="White" FontSize="12"/>
                    <TextBlock Height="16" Canvas.Left="338" TextWrapping="Wrap" Text="玩法" Canvas.Top="17" Width="29" Foreground="#FFBFEB05" FontSize="12"/>
                    <TextBlock Height="16" Canvas.Left="403" TextWrapping="Wrap" Text="奖金(元)" Canvas.Top="17" Width="49" Foreground="#FFBFEB05" FontSize="12"/>
                </Canvas>
            </StackPanel>
        </Grid>
        <Button x:Name="btnClose" Content="取 消" Height="23" HorizontalAlignment="Left" Margin="407,215,0,0" Style="{StaticResource buttonStyle0}" VerticalAlignment="Top" Width="75" Click="btClose_Click" />
        <Button x:Name="btnSave" Content="保 存" Height="23" HorizontalAlignment="Left" Margin="314,215,0,0" Style="{StaticResource buttonStyle0}" VerticalAlignment="Top" Width="75" Click="btSave_Click" />
        <Grid x:Name="gridLoading" Background="#FF404040" Visibility="Collapsed">
            <Border x:Name="border_Processing" VerticalAlignment="Center" BorderBrush="White" BorderThickness="1" HorizontalAlignment="Center" Background="#FF323232" CornerRadius="2" Grid.RowSpan="3">
                <StackPanel Margin="5">
                    <TextBlock x:Name="lbWaiting" TextWrapping="Wrap" Foreground="#FFB7B7B7" Margin="5" HorizontalAlignment="Center"/>
                    <ProgressBar x:Name="progressBarLoading" Height="10" Width="200" IsIndeterminate="True"/>
                </StackPanel>
            </Border>
        </Grid>
    </Grid>
    </sdk:ChildWindow>
